package business;

import model.MembreComite;
import dbAccess.*;
import exceptions.*;

public class LoginManager {
	private MembreComiteDBAccess mdba = new MembreComiteDBAccess();
	public MembreComite identification(String userLogin, String userPass, String dbPass) throws ErreurIdentification, PasIdentificationException, BadLoginException, ODBCErrorException, BadPasswordException, DatabaseErrorException, InvalidDataException{
		if(userLogin==null || userPass==null || dbPass == null) throw new InvalidDataException();
		DBConnexionSingleton.identification(dbPass);
		return mdba.indentification(userLogin, userPass);
	}
}
